<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 字面量
      const obj1 = {}; // Object.prototype
      // 构造函数
      const obj2 = new Object(); // Object.prototype
      //
      // new Object()+Object.defineProperties(a,{})
      const obj3 = Object.create(
        { a: 1 },
        {
          name: {
            value: 'jack',
          },
          age: {
            value: 20,
          },
        }
      );
      console.log(obj1, obj2, obj3);
    </script>
  </body>
</html>
